﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

/* ==============================================================================
   * 功能描述：ZyViewModelBase  
   * 创 建 者：Administrator
   * 创建日期：2022-03-31 14:44:12
   * ==============================================================================*/
namespace Zy.WPF.CtrLib.ViewModels
{
    /// <summary>
    /// ViewModel基础类
    /// </summary>
    public class ZyViewModelBase : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler? PropertyChanged;
        /// <summary>
        /// 属性改变
        /// </summary>
        /// <param name="propName"></param>
        public void NotifyPropertyChanged(string propName)
        {
            if (this.PropertyChanged != null)
                this.PropertyChanged(this, new PropertyChangedEventArgs(propName));
        }
    }
}
